import { http, BaseResponse } from "@/utils/http";
const prefix = ''


// 组织机构树
export const getOrgNoList = (data: any) => {
  return http.request<BaseResponse | any>(
    "post",
    `${prefix}/oauth/org/getOrgNoList`, {
    data,
  }
  );
};

// 停车场信息
export const getParkList = (orgNo: string) => {
  return http.request<BaseResponse | any>(
    "get",
    `${prefix}/omsmanage/park/selectByParkInfo?orgNo=${orgNo}`,
  );
};

// 获取规则
export const getRule = (data: any) => {
  return http.request<BaseResponse | any>(
    "post",
    `${prefix}/omsmanage/warning/park/getRule`, {
    data,
  }
  );
};

// 新增预警规则
export const addRule = (data: any) => {
  return http.request<BaseResponse | any>(
    "post",
    `${prefix}/omsmanage/warning/park/add`, {
    data,
  }
  );
};

// 获取预警联系人
export const getUserList = (data: any) => {
  return http.request<BaseResponse | any>(
    "post",
    `${prefix}/omsmanage/warning/park/getUserList`, {
    data,
  }
  );
};

